package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-11-21
 */
@TableName("tb_user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 唯一标识码
     */
	private String uuid;
    /**
     * 用户id
     */
	private String account;
    /**
     * 昵称
     */
	private String nickname;
    /**
     * 密码
     */
	private String password;
    /**
     * 手机
     */
	private String cellphone;
    /**
     * 性别
     */
	private Boolean sex;
    /**
     * 头像
     */
	@TableField("head_sculpture")
	private String headSculpture;
    /**
     * 状态
     */
	private Boolean status;
    /**
     * 用户类型
     */
	private Integer type;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 更新时间
     */
	private Date updatetime;
    /**
     * 创建者
     */
	private String creator;
    /**
     * 修改者
     */
	private String mender;
    /**
     * 余额
     */
	private BigDecimal money;
    /**
     * 积分
     */
	private BigDecimal point;
	@TableField("bank_name")
	private String bankName;
	@TableField("bank_city")
	private String bankCity;
	@TableField("bank_account_no")
	private String bankAccountNo;
	@TableField("bank_account_name")
	private String bankAccountName;
    /**
     * 推荐人
     */
	@TableField("referrer_uuid")
	private String referrerUuid;
    /**
     * 返利积分
     */
	@TableField("rebate_coupon")
	private Double rebateCoupon;
    /**
     * 返利金额
     */
	@TableField("rebate_amt")
	private Double rebateAmt;
	@TableField("add_user_uid")
	private String addUserUid;
	private String payuserid;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	public Boolean getSex() {
		return sex;
	}

	public void setSex(Boolean sex) {
		this.sex = sex;
	}

	public String getHeadSculpture() {
		return headSculpture;
	}

	public void setHeadSculpture(String headSculpture) {
		this.headSculpture = headSculpture;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getPoint() {
		return point;
	}

	public void setPoint(BigDecimal point) {
		this.point = point;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankCity() {
		return bankCity;
	}

	public void setBankCity(String bankCity) {
		this.bankCity = bankCity;
	}

	public String getBankAccountNo() {
		return bankAccountNo;
	}

	public void setBankAccountNo(String bankAccountNo) {
		this.bankAccountNo = bankAccountNo;
	}

	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	public String getReferrerUuid() {
		return referrerUuid;
	}

	public void setReferrerUuid(String referrerUuid) {
		this.referrerUuid = referrerUuid;
	}

	public Double getRebateCoupon() {
		return rebateCoupon;
	}

	public void setRebateCoupon(Double rebateCoupon) {
		this.rebateCoupon = rebateCoupon;
	}

	public Double getRebateAmt() {
		return rebateAmt;
	}

	public void setRebateAmt(Double rebateAmt) {
		this.rebateAmt = rebateAmt;
	}

	public String getAddUserUid() {
		return addUserUid;
	}

	public void setAddUserUid(String addUserUid) {
		this.addUserUid = addUserUid;
	}

	public String getPayuserid() {
		return payuserid;
	}

	public void setPayuserid(String payuserid) {
		this.payuserid = payuserid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "User{" +
			", id=" + id +
			", uuid=" + uuid +
			", account=" + account +
			", nickname=" + nickname +
			", password=" + password +
			", cellphone=" + cellphone +
			", sex=" + sex +
			", headSculpture=" + headSculpture +
			", status=" + status +
			", type=" + type +
			", isdeleted=" + isdeleted +
			", createtime=" + createtime +
			", updatetime=" + updatetime +
			", creator=" + creator +
			", mender=" + mender +
			", money=" + money +
			", point=" + point +
			", bankName=" + bankName +
			", bankCity=" + bankCity +
			", bankAccountNo=" + bankAccountNo +
			", bankAccountName=" + bankAccountName +
			", referrerUuid=" + referrerUuid +
			", rebateCoupon=" + rebateCoupon +
			", rebateAmt=" + rebateAmt +
			", addUserUid=" + addUserUid +
			", payuserid=" + payuserid +
			"}";
	}
}
